﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Control : MonoBehaviour
{
    public RoleBehaviour rb;

    public int currentDemandMaxTime = 10;
    public int currentDemandRemainTime = 10;

    float delta = 0f;
    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {
        if (delta >= 1f)
        {
            currentDemandRemainTime -= 1;
            delta = 0;
        }
        else
        {
            delta += Time.deltaTime;
        }
    }
}
